// vue.config.js

const TransformPages = require('uni-read-pages')
const { webpack } = new TransformPages()
module.exports = {
	configureWebpack:{
		plugins:[
			new webpack.DefinePlugin({
				ROUTES:webpack.DefinePlugin.runtimeValue(() => {
					const tfpages = new TransformPages({
						includes:['path','name','aliasPath']
					});
					return JSON.stringify(tfpages.routes)
				},true)
			})
		]
	}
}